package loveqq.niceexcel.constant;


import cn.hutool.core.util.ClassUtil;
import loveqq.niceexcel.annotation.internal.Internal;
import loveqq.niceexcel.converter.Converter;
import loveqq.niceexcel.read.handler.ReadHandler;

import java.util.Set;

/**
 * 默认常量
 *
 * @author zhongjh@tsintergy.com
 * @date 2022-08-20
 */
public class DefaultConsts {
    /**
     * 默认读取处理器类
     */
    public static final Set<Class<? extends ReadHandler>> DEFAULT_READ_HANDLER_CLASSES =
            (Set) ClassUtil.scanPackageByAnnotation(ReadHandler.class.getPackage().getName(), Internal.class);

    /**
     * 默认单元格数据转换器类
     */
    public static final Set<Class<? extends Converter>> DEFAULT_CONVERTER_CLASSES =
            (Set) ClassUtil.scanPackageByAnnotation(Converter.class.getPackage().getName(), Internal.class);

}
